﻿#ifndef DRAGENTEREATER_H
#define DRAGENTEREATER_H

#include "qevent.h"
#include <QObject>

class DragEnterEater : public QObject
{
    Q_OBJECT
public:
    explicit DragEnterEater(std::function<bool(QDragEnterEvent*)> func, QObject *parent = nullptr);

private:
    std::function<bool(QDragEnterEvent*)> m_func;

    // QObject interface
public:
    bool eventFilter(QObject *watched, QEvent *event);
};

#endif // DRAGENTEREATER_H
